/**
 * Override convention configuration
 * https://cli.vuejs.org/config/
 */

module.exports = {
  publicPath: process.env.NODE_ENV === "production" ? "/edu-boss-fed/" : "/",
  indexPath: "template/index.html",
  assetsDir: "assets",
  lintOnSave: process.env.NODE_ENV !== "production",
  productionSourceMap: false,
  devServer: {
    proxy: {
      "^/promotionSpace": {
        target: process.env.VUE_APP_API_BASE,
        pathRewrite: { "^/promotionSpace": "/promotionSpace" },
        changeOrigin: true
      }
    },
    open: true,
    port: 8081
  }
};